﻿using System.Net;
using System.Net.NetworkInformation;
using System.Linq;

namespace EmbeddedSensorCloud.Core.Server
{
    internal static class PortHelper
    {
        internal static bool IsUsed(int port)
        {
            return IPGlobalProperties.GetIPGlobalProperties().GetActiveTcpListeners().Any(I => I.Port == port);
        }
    }
}
